@footerWidth: 56px;

.rt-non-auth {
  position: fixed;
  top: 40px;
  left: 50%;
  z-index: 1;
}

.rt-trade-box {
  flex: 1;
  .rt-top-box {
    position: fixed;
    width: 100%;
    height: 80px;
    background-color: #FF9C32;
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    div {
      color: #fff;
    }
    .rt-avatar-box {
      justify-content: center;
      align-items: center;
      display: flex;
      .rt-avatar {
        height: 50px;
        width: 50px;
        border-radius: 50%;
        border: 1px solid yellow;
        background-color: #fff;
      }
    }
  }
  .rt-btn-group {
    position: fixed;
    width: 100%;
    top: 80px;
    height: 40px;
    display: flex;
    background-color: #F86520;
    .ant-btn {
      color: #fff;
      background-color: #F86520;
      flex: 1;
      border-width: inherit;
      font-size: 14px;
      display: flex;
      justify-content: center;
      .anticon-question {
        font-size: 21px;
      }
      &:first-child {
        border-right: 3px solid #FB7F28;
      }
      &:last-child {
        // margin-right: 4px; // when the btn group box position fixed then can remote this line
      }
    }
  }
  .rt-notice-box {
    position: fixed;
    width: 100%;
    height: 30px;
    top: 120px;
    display: flex;
    padding: 2px 4px;
    background: #F8F8F8;
    align-items: center;
    .rt-tag {
      padding: 0 4px;
      background-color: #F44F4F;
      color: #fff;
      border-radius: 3px;
    }
    & > div:last-child {
      margin-left: 8px;
    }
  }
  .rt-goods-box {
    margin-top: 150px;
    border-top: 1px solid #efefef;
    border-bottom: 1px solid #efefef;
    display: flex;
    line-height: 48px;
    div {
      flex: 1;
      text-align: center;
      color: #9a9a9a;
      font-size: 16px;
    }
    .rt-active {
      color: #F67474;
      border-bottom: 2px solid #F67474;
    }
  }
  .rt-concrete-goods {
    border-bottom: 1px solid #efefef;
    height: 60px;
    display: flex;
    padding: 0 8px;
    & > div {
      flex: 1;
    }
    .rt-goods-price-box {
      display: flex;
      flex-direction: column;
      .rt-price {
        color: #F46A6A;
        font-size: 28px;
      }
    }
    .rt-market-box {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      .rt-placeholder {
        border: 3px solid #fff;
      }
    }
  }
  .rt-line-category {
    border-bottom: 1px solid #efefef;
    display: flex;
    line-height: 32px;
    & > div {
      flex: 1;
      text-align: center;
      color: #a1a1a1;
    }
    .rt-active {
      color: #F77F7F;
      border-bottom: 1px solid #F77F7F;
    }
  }
  .rt-chart-box {
    line-height: 200px;
    justify-content: center;
    display: flex;
    color: #f77f7f;
  }
  .rt-available-fund {
    display: flex;
    line-height: 28px;
    padding-left: 8px;
    & > div:nth-child(2) {
      padding-left: 10px;
      color: #F77F7F;
    }
  }
  .rt-op-btn-grp {
    display: flex;
    padding: 0 6px;
    .ant-btn {
      flex: 1;
      color: #fff;
      background-color: #ddd;
      &:nth-child(1) {
        background-color: #D7D7D7;
      }
    }
  }
  .rt-auth-text {
    line-height: 26px;
    text-align: center;
  }
  .rt-btn-auth {
    text-align: center;
    margin-bottom: @footerWidth;
    .ant-btn {
      background-color: #F86520;
      color: #fff;
      span {
        font-size: 14px;
      }
    }
  }
  // footer
  .rt-footer-bar {
    position: fixed; // fixed can not be absolute
    width: 100%;
    bottom: 0;
    display: flex;
    height: @footerWidth;
    background-color: #393A3F;
    color: #d2d2d3;
    .rt-active {
      color: #FD9A30;
    }
    & > div {
      flex: 1; // 平均分
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      & > div {
        flex: 1.2;
        font-size: 12px;
      }
      .anticon {
        flex: 2;
        display: flex;
        align-items: center;
        font-size: 20px;
      }
    }
  }
}